package com.tian.mapper;

import com.tian.dto.ChargeStationQueryPageReqDto;
import com.tian.dto.StationDto;
import com.tian.entity.ChargeStationInfo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface ChargeStationInfoMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(ChargeStationInfo record);

    ChargeStationInfo selectByPrimaryKey(Integer id);

    List<ChargeStationInfo> selectAll();
    List<ChargeStationInfo> listByPage(ChargeStationQueryPageReqDto chargeStationQueryPageReqDto);
    int count(ChargeStationQueryPageReqDto chargeStationQueryPageReqDto);

    int updateByPrimaryKey(ChargeStationInfo record);

    int updateStatusById(StationDto stationDto);

    int selectStation(StationDto stationDto);

    List<ChargeStationInfo>  selectByIdList(List<Integer> idList);

    List<ChargeStationInfo> selectByUserId(Long userId);
}